<template>
  <el-card style="max-width: 100%" shadow="hover">
    <template #header>
      <div style="display: flex; justify-content: space-between">
        <span>项目动态</span>
        <a href="https://gitee.com/juanmaoya/paraboy-admin" style="color: #409eff; cursor: pointer" target="_blank">更多动态</a>
      </div>
    </template>
    <div class="infinite-list" style="overflow: auto">
      <div class="infinite-list-item">
        <el-avatar :src="assets" />
        <div class="infinite-list-item-info">
          <h3>Paraboy 在2024年3月28日创建了项目 paraboy-admin!</h3>
          <p>2024-03-28 22:22:22</p>
        </div>
      </div>
      <el-divider />
      <div class="infinite-list-item">
        <el-avatar :src="assets" />
        <div class="infinite-list-item-info">
          <h3>Paraboy 完成了系统配置等功能</h3>
          <p>2024-04-01 10:10:22</p>
        </div>
      </div>
      <el-divider />
      <div class="infinite-list-item">
        <el-avatar :src="assets" />
        <div class="infinite-list-item-info">
          <h3>Paraboy 完成了首页展示功能</h3>
          <p>2024-04-03 13:00:28</p>
        </div>
      </div>
      <el-divider />
      <div class="infinite-list-item">
        <el-avatar :src="assets" />
        <div class="infinite-list-item-info">
          <h3>Paraboy 正在忙于为paraboy-admin写项目说明文档！</h3>
          <p>2024-04-11 12:30:58</p>
        </div>
      </div>
    </div>
  </el-card>
</template>

<script setup lang="ts">
  import assets from '@/assets/img/avatar.jpg'
</script>

<style lang="scss" scoped>
  .infinite-list {
    height: 400px;
    padding: 0;
    margin: 0;
    list-style: none;
    &-item {
      display: flex;
      align-items: center;
      &-info {
        margin-left: 10px;
      }
    }
  }
</style>
